package com.easy.util;

import com.easy.service.IOrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class CancleOrder {
    @Autowired
    IOrdersService ordersService;
    @Scheduled(fixedRate=1000*60)
    public void cancleOrder(){
        ordersService.cancleOrder();
    }
}
